﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<MedicViet.Models.mvNew>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    MedicViet - Tin Tức
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="../../Content/ckeditor/ckeditor.js" type="text/javascript"></script>
    <h6>
        Tạo tin tức mới</h6>
    <% using (Html.BeginForm("Create", "News", FormMethod.Post, new { enctype = "multipart/form-data" }))
       { %>
    <%: Html.ValidationSummary(true) %>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.title,"Tiêu đề :") %>
    </div>
    <div class="editor-field">
        <%: Html.EditorFor(model => model.title) %>
        <%: Html.ValidationMessageFor(model => model.title) %>
    </div>
    <div>
        <h1 style="color:Red;">Chuyên Mục</h1>
        <div>
            <input id="catName" name="catName" value="1" type="radio" />Tin Tức<br />
        </div>
        <div>
            <input id="catName" name="catName" value="2" type="radio" />Giới Thiệu<br />
        </div>
        <div>
            <input id="catName" name="catName" value="3" type="radio" />Dịch Vụ<br />
        </div>
        <div>
            <input id="catName" name="catName" value="4" type="radio" />Tin Tức Y Học<br />
        </div>
        <div>
            <input id="catName" name="catName" value="5" type="radio" />Thông Tin Sức Khỏe<br />
        </div>
        <div>
            <input id="catName" name="catName" value="6" type="radio" />Danh Sách Bác Sĩ<br />
        </div>
        <div>
            <input id="catName" name="catName" value="7" type="radio" />Các Đơn Vị Hợp Tác<br />
        </div>
        <div>
            <input id="Radio1" name="catName" value="8" type="radio" />Hỏi Đáp<br />
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.nContent,"Nội dung :") %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.nContent, new { @id="nContent", @class="ckeditor", @name="nContent"})%>
            <%: Html.ValidationMessageFor(model => model.nContent) %>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.description, "Mô tả :") %>
        </div>
        <div class="editor-field">
            <%: Html.TextAreaFor(model => model.description, new { cols = "40", rows = "5" })%>
            <%: Html.ValidationMessageFor(model => model.description)%>
        </div>
        <div class="editor-label">
            <%: Html.LabelFor(model => model.thumbPath, "Upload ảnh :") %>
        </div>
        <div class="editor-field">
            <input type="file" name="thumbPath" id="thumbPath" />
            <%--<script src="../../Content/JSUpload/jquery-1.2.6.min.js" type="text/javascript"></script>
        <script src="../../Content/JSUpload/swfupload.js" type="text/javascript"></script>
        <script src="../../Content/JSUpload/jquery-asyncUpload-0.1.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function () {
                $("#thumbPath").makeAsyncUploader({
                    flash_url: '../../Content/JSUpload/swfupload.swf',
                    button_image_url: '../../Content/JSUpload/blankButton.png',
                    disableDuringUpload: 'INPUT[type="submit"]',
                });
            });        
        </script>--%>
        </div>
        <p>
            <input type="submit" value="Đăng tin" class="button" />
        </p>
        <% } %>
</asp:Content>
